import useAxios from "@/hooks/useAxios"

function getList(data){
  return useAxios('/shop-api/goods/list',{
    method:"POST",
    cache:true,
    data
  })
}
function getByID(id){
  return useAxios('/shop-api/goods/getOne',{
    method:"POST",
    cache:true,
    data:{id}
  })
}

export {
  getList,getByID
}